package 笔记.equals与双等于号;

import java.util.HashMap;
import java.util.Map;

public class Demo01 {
    public static void main(String[] args) {
        int num1 = 0;
        int num2 = 0;
        System.out.println("基本数据类型比较:" + (num1 == num2));
        Map<Integer, Integer> map1 = new HashMap();
        Map<Integer, Integer> map2 = new HashMap();
        System.out.println("引用类型比较:" + (map1 == map2));
    }
}
